Integrand size = 35, antiderivative size = 510 \[ \int \frac {\cos ^4(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{9/2}} \, dx=\frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}+\frac {8 \left (a^2-2 b^2\right ) \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^3 \left (a^2-b^2\right ) d f (a+b \sin (e+f x))^{3/2}}+\frac {32 b \left (2 a^2-b^2\right ) \cos (e+f x)}{35 a^3 \left (a^2-b^2\right )^2 f \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}-\frac {32 b \left (2 a^2-b^2\right ) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (1+\csc (e+f x))}{a-b}} E\left (\arcsin \left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right )|-\frac {a+b}{a-b}\right ) \tan (e+f x)}{35 a^5 (a-b) (a+b)^{3/2} \sqrt {d} f}-\frac {8 \left (5 a^2-3 a b-4 b^2\right ) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (1+\csc (e+f x))}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right ),-\frac {a+b}{a-b}\right ) \tan (e+f x)}{35 a^4 (a-b) (a+b)^{3/2} \sqrt {d} f} \]
[Out]
Time = 1.33 (sec) , antiderivative size = 510, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2966, 2968, 3135, 3072, 3077, 2895, 3073} \[ \int \frac {\cos ^4(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{9/2}} \, dx=\frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}-\frac {32 b \left (2 a^2-b^2\right ) \tan (e+f x) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (\csc (e+f x)+1)}{a-b}} E\left (\arcsin \left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right )|-\frac {a+b}{a-b}\right )}{35 a^5 \sqrt {d} f (a-b) (a+b)^{3/2}}-\frac {8 \left (5 a^2-3 a b-4 b^2\right ) \tan (e+f x) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (\csc (e+f x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right ),-\frac {a+b}{a-b}\right )}{35 a^4 \sqrt {d} f (a-b) (a+b)^{3/2}}+\frac {32 b \left (2 a^2-b^2\right ) \cos (e+f x)}{35 a^3 f \left (a^2-b^2\right )^2 \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}+\frac {8 \left (a^2-2 b^2\right ) \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^3 d f \left (a^2-b^2\right ) (a+b \sin (e+f x))^{3/2}}+\frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}} \]
[In]
[Out]
Rule 2895
Rule 2966
Rule 2968
Rule 3072
Rule 3073
Rule 3077
Rule 3135
Rubi steps \begin{align*} \text {integral}& = \frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {6 \int \frac {\cos ^2(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{7/2}} \, dx}{7 a} \\ & = \frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {6 \int \frac {1-\sin ^2(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{7/2}} \, dx}{7 a} \\ & = \frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}+\frac {12 \int \frac {2 \left (a^2-b^2\right ) d-\left (a^2-b^2\right ) d \sin ^2(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{5/2}} \, dx}{35 a^2 \left (a^2-b^2\right ) d} \\ & = \frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}+\frac {8 \left (a^2-2 b^2\right ) \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^3 \left (a^2-b^2\right ) d f (a+b \sin (e+f x))^{3/2}}+\frac {8 \int \frac {\frac {1}{2} \left (5 a^4-9 a^2 b^2+4 b^4\right ) d^2-\frac {3}{2} a b \left (a^2-b^2\right ) d^2 \sin (e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{3/2}} \, dx}{35 a^3 \left (a^2-b^2\right )^2 d^2} \\ & = \frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}+\frac {8 \left (a^2-2 b^2\right ) \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^3 \left (a^2-b^2\right ) d f (a+b \sin (e+f x))^{3/2}}+\frac {32 b \left (2 a^2-b^2\right ) \cos (e+f x)}{35 a^3 \left (a^2-b^2\right )^2 f \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}+\frac {8 \int \frac {\frac {3}{2} a^2 b \left (a^2-b^2\right ) d^2+\frac {1}{2} b \left (5 a^4-9 a^2 b^2+4 b^4\right ) d^2+\left (\frac {3}{2} a b^2 \left (a^2-b^2\right ) d^2+\frac {1}{2} a \left (5 a^4-9 a^2 b^2+4 b^4\right ) d^2\right ) \sin (e+f x)}{(d \sin (e+f x))^{3/2} \sqrt {a+b \sin (e+f x)}} \, dx}{35 a^3 \left (a^2-b^2\right )^3 d} \\ & = \frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}+\frac {8 \left (a^2-2 b^2\right ) \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^3 \left (a^2-b^2\right ) d f (a+b \sin (e+f x))^{3/2}}+\frac {32 b \left (2 a^2-b^2\right ) \cos (e+f x)}{35 a^3 \left (a^2-b^2\right )^2 f \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}+\frac {\left (4 \left (5 a^2-3 a b-4 b^2\right )\right ) \int \frac {1}{\sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}} \, dx}{35 a^3 (a-b) (a+b)^2}+\frac {\left (16 b \left (2 a^2-b^2\right ) d\right ) \int \frac {1+\sin (e+f x)}{(d \sin (e+f x))^{3/2} \sqrt {a+b \sin (e+f x)}} \, dx}{35 a^3 \left (a^2-b^2\right )^2} \\ & = \frac {2 \cos ^3(e+f x) \sqrt {d \sin (e+f x)}}{7 a d f (a+b \sin (e+f x))^{7/2}}+\frac {12 \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^2 d f (a+b \sin (e+f x))^{5/2}}+\frac {8 \left (a^2-2 b^2\right ) \cos (e+f x) \sqrt {d \sin (e+f x)}}{35 a^3 \left (a^2-b^2\right ) d f (a+b \sin (e+f x))^{3/2}}+\frac {32 b \left (2 a^2-b^2\right ) \cos (e+f x)}{35 a^3 \left (a^2-b^2\right )^2 f \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}-\frac {32 b \left (2 a^2-b^2\right ) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (1+\csc (e+f x))}{a-b}} E\left (\arcsin \left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right )|-\frac {a+b}{a-b}\right ) \tan (e+f x)}{35 a^5 (a-b) (a+b)^{3/2} \sqrt {d} f}-\frac {8 \left (5 a^2-3 a b-4 b^2\right ) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (1+\csc (e+f x))}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right ),-\frac {a+b}{a-b}\right ) \tan (e+f x)}{35 a^4 (a-b) (a+b)^{3/2} \sqrt {d} f} \\ \end{align*}
Result contains complex when optimal does not.
Time = 7.41 (sec) , antiderivative size = 1670, normalized size of antiderivative = 3.27 \[ \int \frac {\cos ^4(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{9/2}} \, dx=\frac {\sin (e+f x) \sqrt {a+b \sin (e+f x)} \left (-\frac {2 \left (a^2 \cos (e+f x)-b^2 \cos (e+f x)\right )}{7 a b^2 (a+b \sin (e+f x))^4}+\frac {4 \left (5 a^2 \cos (e+f x)+3 b^2 \cos (e+f x)\right )}{35 a^2 b^2 (a+b \sin (e+f x))^3}-\frac {2 \left (5 a^4 \cos (e+f x)-9 a^2 b^2 \cos (e+f x)+8 b^4 \cos (e+f x)\right )}{35 a^3 b^2 \left (a^2-b^2\right ) (a+b \sin (e+f x))^2}-\frac {32 \left (2 a^2 b^2 \cos (e+f x)-b^4 \cos (e+f x)\right )}{35 a^4 \left (a^2-b^2\right )^2 (a+b \sin (e+f x))}\right )}{f \sqrt {d \sin (e+f x)}}+\frac {4 \sqrt {\sin (e+f x)} \left (\frac {4 a \left (5 a^4-9 a^2 b^2+4 b^4\right ) \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-a+b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{\sqrt {2}}\right ),-\frac {2 a}{-a+b}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {-\frac {(a+b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sin (e+f x)}{a}} \sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{(a+b) \sqrt {\sin (e+f x)} \sqrt {a+b \sin (e+f x)}}+4 a \left (-8 a^3 b+4 a b^3\right ) \left (\frac {\sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-a+b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{\sqrt {2}}\right ),-\frac {2 a}{-a+b}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {-\frac {(a+b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sin (e+f x)}{a}} \sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{(a+b) \sqrt {\sin (e+f x)} \sqrt {a+b \sin (e+f x)}}-\frac {\sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-a+b}} \operatorname {EllipticPi}\left (-\frac {a}{b},\arcsin \left (\frac {\sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{\sqrt {2}}\right ),-\frac {2 a}{-a+b}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {-\frac {(a+b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sin (e+f x)}{a}} \sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{b \sqrt {\sin (e+f x)} \sqrt {a+b \sin (e+f x)}}\right )+2 \left (8 a^2 b^2-4 b^4\right ) \left (\frac {\cos (e+f x) \sqrt {a+b \sin (e+f x)}}{b \sqrt {\sin (e+f x)}}+\frac {i \cos \left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \csc (e+f x) E\left (i \text {arcsinh}\left (\frac {\sin \left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{\sqrt {\sin (e+f x)}}\right )|-\frac {2 a}{-a-b}\right ) \sqrt {a+b \sin (e+f x)}}{b \sqrt {\cos ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \csc (e+f x)} \sqrt {\frac {\csc (e+f x) (a+b \sin (e+f x))}{a+b}}}+\frac {2 a \left (\frac {a \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-a+b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{\sqrt {2}}\right ),-\frac {2 a}{-a+b}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {-\frac {(a+b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sin (e+f x)}{a}} \sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{(a+b) \sqrt {\sin (e+f x)} \sqrt {a+b \sin (e+f x)}}-\frac {a \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-a+b}} \operatorname {EllipticPi}\left (-\frac {a}{b},\arcsin \left (\frac {\sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{\sqrt {2}}\right ),-\frac {2 a}{-a+b}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {-\frac {(a+b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sin (e+f x)}{a}} \sqrt {\frac {\csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{a}}}{b \sqrt {\sin (e+f x)} \sqrt {a+b \sin (e+f x)}}\right )}{b}\right )\right )}{35 a^4 (a-b)^2 (a+b)^2 f \sqrt {d \sin (e+f x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(17279\) vs. \(2(458)=916\).
Time = 9.72 (sec) , antiderivative size = 17280, normalized size of antiderivative = 33.88
[In]
[Out]
\[ \int \frac {\cos ^4(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{9/2}} \, dx=\int { \frac {\cos \left (f x + e\right )^{4}}{{\left (b \sin \left (f x + e\right ) + a\right )}^{\frac {9}{2}} \sqrt {d \sin \left (f x + e\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^4(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{9/2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\cos ^4(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{9/2}} \, dx=\int { \frac {\cos \left (f x + e\right )^{4}}{{\left (b \sin \left (f x + e\right ) + a\right )}^{\frac {9}{2}} \sqrt {d \sin \left (f x + e\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^4(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{9/2}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^4(e+f x)}{\sqrt {d \sin (e+f x)} (a+b \sin (e+f x))^{9/2}} \, dx=\int \frac {{\cos \left (e+f\,x\right )}^4}{\sqrt {d\,\sin \left (e+f\,x\right )}\,{\left (a+b\,\sin \left (e+f\,x\right )\right )}^{9/2}} \,d x \]
[In]
[Out]